← Back to All APIs

Products API

E-commerce product catalog with categories and filters

Base URL
https://fakeapi.in/api/products

API Endpoints

GET/api/products

Get all products

Parameters

category(string)
Filter by category
inStock(boolean)
Filter by stock availability

Request Body

{
 "id": 10,
  "name": "Elegant Rubber Table",
  "description": "Experience the tan brilliance of our Soap, perfect for forsaken environments",
  "price": 26885.94,
  "category": "Industrial",
  "stock": 219,
  "rating": 2,
  "image": "https://loremflickr.com/388/2230/product?lock=194143947717328",
  "isAvailable": true,
  "createdAt": "2025-05-27T08:55:16.939Z"
}
GET/api/products/1

Get product by ID

Request Body

{
 "id": 10,
  "name": "Elegant Rubber Table",
  "description": "Experience the tan brilliance of our Soap, perfect for forsaken environments",
  "price": 26885.94,
  "category": "Industrial",
  "stock": 219,
  "rating": 2,
  "image": "https://loremflickr.com/388/2230/product?lock=194143947717328",
  "isAvailable": true,
  "createdAt": "2025-05-27T08:55:16.939Z"
}
POST/api/products

Create product

Request Body

{
  "name": "Elegant Rubber Table",
  "description": "Experience the tan brilliance of our Soap, perfect for forsaken environments",
  "price": 26885.94,
  "category": "Industrial",
  "stock": 219,
  "rating": 2,
  "image": "https://loremflickr.com/388/2230/product?lock=194143947717328",
  "isAvailable": true,
}
PUT/api/products/1

Update product

Request Body

{
  "name": "Elegant Rubber Table",
  "description": "Experience the tan brilliance of our Soap, perfect for forsaken environments",
  "price": 26885.94,
  "category": "Industrial",
  "stock": 219,
  "rating": 2,
  "image": "https://loremflickr.com/388/2230/product?lock=194143947717328",
  "isAvailable": true,
}
DELETE/api/products/1

Delete product

Example Usage

// Get products 
fetch('https://fakeapi.in/products')
  .then(response => response.json())
  .then(products => console.log(products));

// Create a new product
fetch('https://fakeapi.in/products', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    name: 'New Product',
    price: 49.99,
    category: 'electronics'
  })
})
.then(response => response.json())
.then(product => console.log(product));

Example Response

{
  "id": 10,
  "name": "Elegant Rubber Table",
  "description": "Experience the tan brilliance of our Soap, perfect for forsaken environments",
  "price": 26885.94,
  "category": "Industrial",
  "stock": 219,
  "rating": 2,
  "image": "https://loremflickr.com/388/2230/product?lock=194143947717328",
  "isAvailable": true,
  "createdAt": "2025-05-27T08:55:16.939Z"
}

Quick Actions

Test in Playground

API Status

StatusOperational
Rate Limit1000 requests/hour
Response FormatJSON
Products API - E-commerce Catalog Documentation | FakeAPI.in